﻿@model ResumePage1Model
@{
    ResLink.AddCss("~/res/css/resume/page1.css");
}

<h1>이력서</h1>

@Html.Partial("_Tab", 1)

<h2>기본사항</h2>

<form id="이력서1">

<div class="box">

    <div>
        <div class="td">
            <div>이름</div>
            @Html.TextBoxFor(m => m.이름, new { data_lsj_validate = "required" })
        </div>
        <div class="td">
            <div>주민등록번호</div>
            @Html.TextBoxFor(m => m.주민등록번호, new { data_lsj_mask = "999999-9999999" })
        </div>
        <div class="td">
            <div>외국인등록번호</div>
            @Html.TextBoxFor(m => m.외국인등록번호, new { data_lsj_mask = "999999-9999999" })
        </div>
        <div class="td">
            <div>생년월일</div>
            @Html.TextBoxFor(m => m.생년월일, new { data_lsj_mask = "9999-99-99", data_lsj_validate = "required" })
        </div>
        <div class="td">
            <div>성별</div>
            <div class="radio-group">
                @Html.RadioButtonFor(m => m.성별, "남")남 &nbsp;
                @Html.RadioButtonFor(m => m.성별, "여")여 &nbsp;
            </div>
        </div>
    </div>

    <div>
        <div class="td">
            <div>이메일</div>
            @Html.TextBoxFor(m => m.이메일, new { data_lsj_validate = "required" })
        </div>
        <div class="td">
            <div>휴대전화</div>
            @Html.TextBoxFor(m => m.휴대전화, new { data_lsj_validate = "required" })
        </div>
        <div class="td">
            <div>강사전업여부</div>
            <div class="radio-group">
                @Html.RadioButtonFor(m => m.강사전업여부, "전업")전업 &nbsp;
                @Html.RadioButtonFor(m => m.강사전업여부, "직장보유")직장보유 &nbsp;
                @Html.RadioButtonFor(m => m.강사전업여부, "겸직가능")겸직가능 &nbsp;
            </div>
        </div>
    </div>
</div>

<h2>자택</h2>
<div class="box">

    <div>
        <div class="td">
            <div>전화번호</div>
            @Html.TextBoxFor(m => m.집전화)
        </div>
        <div class="td">
            <div>우편번호</div>
            <div class="form-horizontal">
                @Html.TextBoxFor(m => m.집우편번호, new { data_lsj_mask = "999-999" })
                <a class="btn btn-small" onclick="우편번호검색(this)">검색</a>
            </div>
        </div>
        <div class="td">
            <div>주소1</div>
            @Html.TextBoxFor(m => m.집주소1)
        </div>
        <div class="td">
            <div>주소2</div>
            @Html.TextBoxFor(m => m.집주소2)
        </div>
    </div>
</div>

<h2>직장</h2>
<div class="box">

    <div>
        <div class="td">
            <div>직장명</div>
            @Html.TextBoxFor(m => m.직장명)
        </div>
        <div class="td">
            <div>부서</div>
            @Html.TextBoxFor(m => m.직장부서)
        </div>
        <div class="td">
            <div>직위</div>
            @Html.TextBoxFor(m => m.직장직위)
        </div>
    </div>

    <div>
        <div class="td">
            <div>전화번호</div>
            @Html.TextBoxFor(m => m.직장전화)
        </div>
        <div class="td">
            <div>우편번호</div>
            <div class="form-horizontal">
                @Html.TextBoxFor(m => m.직장우편번호, new { data_lsj_mask = "999-999" })
                <a class="btn btn-small" onclick="우편번호검색(this)">검색</a>
            </div>
        </div>
        <div class="td">
            <div>주소1</div>
            @Html.TextBoxFor(m => m.직장주소1)
        </div>
        <div class="td">
            <div>주소2</div>
            @Html.TextBoxFor(m => m.직장주소2)
        </div>
    </div>

</div>

<div>
    <div class="td">
        <h2>자격증</h2>
        @Html.TextBoxFor(m => m.자격증1) @Html.TextBoxFor(m => m.자격증2) @Html.TextBoxFor(m => m.자격증3)
    </div>
</div>

</form>

<hr />
<a class="btn btn-info" href="@Url.MyAction("Page1", "Resume")"><i class="icon-refresh icon-white"></i> 새로고침 </a>
<a class="btn btn-primary" onclick="이력서1저장()"><i class="icon-hdd icon-white"></i> 저장 </a>

@Html.Partial("../ZipCode/_ZipCodeDialog")

<script type="text/javascript">
    function 이력서1저장() {
        AjaxPostForm($("form#이력서1"), '@Url.MyAction("SavePage1", "Resume")');
    }
</script>
